package Network;

import java.io.Serializable;
import android.util.Log;
import Wormish.agiletre.se.PlayerAnimation;
import Wormish.agiletre.se.Math.Vec2f;

@SuppressWarnings("serial")
public class UdpPacket implements Serializable
{
	public PlayerAnimation AnimationState;
	public Vec2f Pos;
	public ShotData Shot;
	public float Health;
	public int Frags;
	public int Lives;
	
	public static void getSize()
	{
		byte[] data = NetworkHandler.Serialize(new UdpPacket(Vec2f.UnitX, 100, 5, 1, PlayerAnimation.WalkRight, null));
		Log.d("Size", " " + data.length);
	}
	
	public UdpPacket(Vec2f pos, float health, int lives, int frags, PlayerAnimation animationState, ShotData shot)
	{
		Lives = lives;
		Frags = frags;
		Health = health;
		AnimationState = animationState;
		Pos = pos;
		Shot = shot;
	}
}
